package com.jason.service;

import com.jason.entities.JsonData;
import com.jason.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value="CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @GetMapping("api/v1/payment/list/{id}")
    public JsonData Select(@PathVariable("id") Long id );
}
